package com.example.yunJie.digitalSentry.service;


import com.example.yunJie.digitalSentry.entity.ShiftEntity;

import java.io.Serializable;
import java.util.List;


public interface ShiftService {
    int insert(ShiftEntity shiftEntity);


    int update(ShiftEntity shiftEntity);


    int deleteById(Serializable id);


    int deleteIdList(Long[] idList);


    ShiftEntity findId(String id);


    List<ShiftEntity> findAll(ShiftEntity shiftEntity);


    List<ShiftEntity> findByMarketNameAndPostName(String marketName,String postName);

    //根据市场名称查找所有班次
    List<ShiftEntity> findAllByMarketName(String marketName);

    //根据市场名称和岗位名称查找班次列表
    List<ShiftEntity> findAllByMarketNameAndPostName(String marketName,String postName);

    //根据市场名，岗位名，班次名查找班次列表
    List<ShiftEntity> findAllByMarketNameAndPostNameAndShiftName(String marketName,String postName,String shiftName);

    //根据班次名查找班次
    ShiftEntity findByShiftName(String shiftName);

    ShiftEntity findBy(String marketName,String postName,String shiftName);
}
